﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
namespace Common
{
    public class AppConst
    {
        public AppConst()
        {
        }

        #region 系统中判断未赋值的判断，只可以用于比较判断，不能用于赋值
        public const string StringNull = "";
        public const int IntNull = -999999;
        public const decimal DecimalNull = -999999;
        public static DateTime DateTimeNull = DateTime.Parse("1900-01-01");
        public const int Success = 0;
        public const int Failed = -1;

        public const string NoColumnStringNull = "string.empty";
        public const int NoColumnIntNull = -888888;
        public const decimal NoColumnDecimalNull = -888888;
        public static DateTime NoColumnDateTimeNull = DateTime.Parse("1800-01-01");
        #endregion
        public const string AllSelectString = "--- 所有 ---";
        public const string PleaseSelectString = "--- 请选择 ---";
        public const string DefaultString = "--- 默认 ---";
        public const string ImportCodeFilePath = "F:/Code/码管家420/码管家420/Web";//导码文件所在路径

        public const string DecimalToInt = "#########0"; //用于point的显示，一般来说currentprice应该没有分。
        public const string DecimalFormat = "#########0.00";
        public const string DecimalFormatLong = "#########0.000";
        public const string DecimalFormatWithGroup = "#,###,###,##0.00";
        public const string DecimalFormatWithCurrency = "￥#########0.00";
        public const string DateFormat = "yyyy-MM-dd";
        public const string DateFormatLong = "yyyy-MM-dd HH:mm:ss";
        public const string DateFormatLong2 = "yyyy/MM/dd HH:mm";
        public const string IntFormatWithGroup = "#,###,###,##0";
        public const string DateFormatLen8 = "yyyyMMdd";
        public const string DateFormatInChina = "yyyy年MM月dd日";//add by AlexLiu 2011-11-11
        public const string TablePrefix = "AntiFake_Digitcode";//表名前缀
        public const string Path = "e:/GenCodeFile/";//生码文件路径
        public const string TxtSuffix = ".txt";//txt文件后缀
        //public const string DigitCodeKey = "64837772";
        public const string DigitCodeKey = "9517534862";
        public const string ClientCode = "NbClientCode";
        public const string DigitCodeTableNamePrdfix = "t_digitcode";
        public const string WarehouseOutTableNamePrdfix = "t_warehouse_out";
        public const string WarehouseInTableNamePrdfix = "t_warehouse_In";
        public const string RootsTableNamePrdfix = "t_roots";
        public const string SendMessagePort1 = "http://sms.3wxt.cn";// (主端口)
        public const string SendMessagePort2 = "http://dx.3wxt.cn:8800"; // (备用端口)
        public const string SendMessageHeader = "【码管家云系统】"; // (短信消息头)
        public static string TaskPath()
        {
            return HttpContext.Current.Server.MapPath("~/" + "TaskCode");
        }

    }
}
